<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Fields'); ?></div>
    <h2>Fields</h2>
    <p>A field, also called extra-field or custom-field, is power tool for extending some special content of post</p>
           
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col" width="25%"><?php  echo Yii::t('AdmincpModule.admincp', 'Field name');?></th>
                <th scope="col" width="15%"><?php  echo Yii::t('AdmincpModule.admincp', 'Type');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Description');?></th>                
            </tr>
        </thead>
            
        <tbody>
        
        <?php if(!empty($arrFields)):?>
			<?php foreach($arrFields as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox"></td>
                <td>
					<strong><?php echo $R['field_name']; ?></strong>
                    <p style="margin:0; padding: 2px 0 0;">
                        <a href="<?php echo LINK_ADMINCP_TAXONOMIES.'/fields/form/?taxonomy='.$intTaxonomyId.'&id='.$R['field_id']; ?>"  title="Edit">Edit</a> | 
                        <a href="<?php echo LINK_ADMINCP_TAXONOMIES.'/fields/delete/?taxonomy='.$intTaxonomyId.'&id='.$R['field_id']; ?>" title="Delete">Delete</a> 
                    </p>                	
                </td>
                <td><?php echo $R['field_code']; ?></td>
                <td><?php echo $R['field_description']; ?></td>               
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">       
        <div class="sep"></div>		
        <a class="button add" href="<?php echo LINK_ADMINCP_TAXONOMIES.'/fields/form?taxonomy='.$intTaxonomyId; ?>"><?php echo Yii::t('AdmincpModule.admincp', 'Add Field'); ?></a> 
    </div>
</div>